package com.example.administrator.hqq.config;

import android.os.Environment;

import com.blankj.utilcode.util.SPUtils;

/**
 * @name: HQQ
 * @describe:APP标识集合类
 * @author: 康海涛 QQ2541849981
 * @time: 2018/10/29 17:53
 * @remark:
 */
public class LoongsConfig {
    public static final String PICTURE_DIR = Environment.getExternalStorageDirectory() + "/HQQ/photo";
    public static final String phone = "phone";
    public static final String VOICE ="VOICE";
    public static String code ="code";
    public static String sex="sex";
    public static String birth="birth";
    public static String user_name="userName";
    public static String picId="picId";
    public static String loginToken="longinToken";
    public static String rongToken="rongToken";
    public static String QNToken="rongToken";
    public static String nickname="nickname";
    public static String gender="gender";
    public static String portrait_id="portrait_id";
    public static String topic="topic";
    public final static String data = "data";
    public static String index = "index";
    public static String canEdit = "canEdit";
    public static String user_id="user_id";
    public static final String FROM_TYPE = "from_type";
    public static int three_seconds=3;
    public static String token="token";
    public static String type="type";
    public static String title="title";
    public static String url="url";
    public static String description="description";
    public static String max_member="max_member";
    public static String location_prefer="location_prefer";
    public static String gender_prefer="gender_prefer";
    public static String age_prefer="age_prefer";
    public static String topic_id="topic_id";
    public static String question_amount="question_amount";
    public static String question="question";
    public static String location="location";
    public static String city_code="city_code";
    public static String picName="picName";
    public static String topic_category="topic_category";
    public static String key_word="key_word";
    public static String city_prefer="city_prefer";
    public static String page="page";
    public static String amount="amount";
    public static String last_id="last_id";
    public static String group_id="group_id";
    public static String answer="answer";
    public static String introduction="introduction";
    public static String chat_room_id="chat_room_id";
    public static String group_member_type="group_member_type";
    public static String value="value";
    public static String member="member";
    public static String old_owner_id="old_owner_id";
    public static String new_owner_id="new_owner_id";
    public static String owner_id="owner_id";
    public static String target_user_id="target_user_id";
    public static String forum_id="forum_id";
    public static String id="id";
    public static String chat_permission="chat_permission";
    public static String reply_permission="reply_permission";
    public static String text="text";
    public static String reply_id="reply_id";
    public static String discussion_id="discussion_id";
    public static String size="size";
    public static String contact_is_showw="contact_is_showw";
    public static String user_other_id="user_other_id";
    public static String updateMine="updateMine";
    public static java.lang.String isOpenedNotification="isOpenedNotification";
    public static String reason_id="reason_id";
    public static String is_chat_room_more="is_chat_room_more";
    public static String ConversationType="ConversationType";
    public static String ChatComplainType="ChatComplainType";
    public static String objectId="objectId";
    public static String position="position";
    public static String chat_message="chat_message";
    public static String reason="reason";
    public static String message_uid="message_uid";
    public static String image_id="image_id";
    public static String ReportType="ReportType";
    public static int Repeat_report=430001;
    public static int mine_forum=430002;
    public static String guide="guide";
    public static String name="name";
    public static String application_id="application_id";
    public static String category_id="category_id";
    public static String USER="USER";
    public static String COMPLAINT="COMPLAINT";
    public static String GROUP="GROUP";
    public static String FORUM="FORUM";
    public static String DATING="DATING";
    public static String dating_id="dating_id";
    public static java.lang.String dating_gender_prefer="dating_gender_prefer";
    public static java.lang.String dating_city_prefer="dating_city_prefer";
    public static java.lang.String dating_age_prefer="dating_age_prefer";
    public static String other_user_id="other_user_id";
    public static String topicIds="topicIds";
    public static String pic_index="pic_index";
    public static String pic_Url="pic_Url";
    public static String user_pic="user_pic";
    public static String locate_position_id="locate_position_id";
    public static String hobbies="hobbies";
    public static String agreement="agreement";
    public static String privacy="privacy";
    public static String first_forum_create="first_forum_create";
    public static java.lang.String creat_module="creat_module";
    public static String group_title="group_title";
    public static String first_convention_module="first_convention_module";
    public static java.lang.String user_phone="user_phone";
    public static java.lang.String groupGuide="groupGuide";
    public static String forumPosition="forumPosition";
    public static String is_quit="is_quit";
    public static String complaint_id="complaint_id";
    public static String from_user_id="from_user_id";
    public static String object_name ="object_name";
    public static String message_time ="message_time";
    public static String channel_type="channel_type";
    public static String content="content";
    public static String source="source";
    public static String forum_age_screen="forum_age_screen";
    public static java.lang.String forum_gender_screen="forum_gender_screen";

    /**
     * 通过user_id来获取SP实例
     * @return 返回SP实例对象
     */
    public static SPUtils getUsersIdSPUtils() {
        SPUtils instance = SPUtils.getInstance(getUser_id());
        return instance;
    }

    /**
     * 获取user_id
     * @return 返回用户user_id
     */
    public static String getUser_id(){
        String string = SPUtils.getInstance().getString(LoongsConfig.user_id);
        return string;
    }
    /**
     * 记录对话类型
     */
    public static class Conversation {
        public static String ChatConversationType="ChatConversationType";
        public static final String PRIVATE = "PRIVATE";

        public static String ConversationID="ConversationID";
        public static String GROUP="GROUP";
    }

    /**
     * 记录消息提醒设置
     */
    public static class MessageNotification {
        public static int dialogueNotificationId=1;
        public static String dialogueNotification="dialogueNotification";
        public static int messageNotificationId=2;
        public static String messageNotification="messageNotification";
        public static String voice="voice";
        public static String vibrator="vibrator";
        public static String InformationMessageNumber="InformationMessageNumber";
        public static String InformationNotificationNumber="InformationNotificationNumber";
        public static String InformationNumber="InformationNumber";
    }
    /**
     * 投诉类型:
     * 群,私人,群成员,退出群聊
     */
    public static enum ComplainType{
        GROUP,PRIVATE,GROUP_MEMBER,QUIT_GROUP
    }

}
